/*
 * @Author: Zhao Star
 * @LastEditors: Zhao Star
 * @Description: *******************
 * @Date: 2019-04-25 19:02:19
 * @LastEditTime: 2019-04-25 19:31:43
 */
const path = require('path')

function resolve(dir) {
  return path.join(__dirname, dir)
}
module.exports = {
  lintOnSave: true,
  chainWebpack: (config) => {
    config.resolve.alias
      .set('@', resolve('src'))
      .set('@common', resolve('src/common'))
    // 这里只写了两个个，你可以自己再加，按这种格式.set('', resolve(''))
  }
}
